using Mono.Cecil;
using UnityEngine;
using UnityEngine.Serialization;

public class ObjcetControler : MonoBehaviour
{

    public int objNum = 100;
    
    
    
    void Start()
    {
        for (int i = 0; i < objNum; i++)
        {
            BuilderObj();
        }
        
        
    }

    void Update()
    {
        
    }



    private void BuilderObj()
    {
        GameObject obj= new GameObject("11");
        obj.transform.parent = transform;
        obj.transform.localScale = new Vector3(0.2f, 0.2f, 0);
        SpriteRenderer spriteRenderer = obj.AddComponent<SpriteRenderer>();
        spriteRenderer.sprite = Resources.Load<Sprite>("怪物/怪物图/png/三叶虫");
        
        
        
    }

}
